package library.and.xps.com.step.view.activity;

import android.content.Intent;
import android.view.View;

import com.zhy.autolayout.AutoRelativeLayout;

import library.and.xps.com.step.R;
import library.and.xps.com.step.view.base.BaseActivity;


public class TeamManageActivity extends BaseActivity implements View.OnClickListener {
    AutoRelativeLayout ar_orgin_info, ar_department_info;

    @Override
    protected int getLayout() {
        return R.layout.activity_team_manage;
    }

    @Override
    protected void setData() {
        ar_orgin_info = r2v(R.id.ar_orgin_info);
        ar_department_info = r2v(R.id.ar_department);
        ar_department_info.setOnClickListener(this);
        ar_orgin_info.setOnClickListener(this);
    }

    @Override
    protected void init() {

    }

    @Override
    public void onClick(View view) {
        super.onClick(view);
        switch (view.getId()) {
            case R.id.ar_orgin_info:
                startActivity(new Intent(this, TeamInfoActivity.class));
                break;
            case R.id.ar_department:
                startActivityForResult(new Intent(this, DepartManageActivity.class), 0);
                break;
        }
    }
}
